package JavaSE.Class6;

import java.util.Arrays;

public class Class6 {
    public static void main(String[] args) {
        int[][]arr={{1,2,3},{4,5,6}};
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                System.out.print(arr[i][j] + " ");
            }
        }
        System.out.println();
        for(int tem[]:arr){
            for(int x: tem){
                System.out.print(x+" ");
            }
        }
        System.out.println();
        System.out.println(Arrays.deepToString(arr));

        System.out.println("================");

        int[][]arr1=new int[2][];
        arr1[0]=new int[]{1,2,3,4,5};
        arr1[1]=new int[]{9};
        for (int i = 0; i < arr1.length; i++) {
            for (int j = 0; j < arr1[i].length; j++) {
                System.out.print(arr1[i][j] + " ");
            }
        }
        System.out.println();
        for(int k[]:arr1){
            for(int x: k){
                System.out.print(x+" ");
            }
        }
        System.out.println();
        System.out.println(Arrays.deepToString(arr1));


    }
}
